#!/bin/bash
trap 'echo Abort ; exit 1' ERR
[ -d /opt/armgcc/rootfs/ ] || { echo No /opt/armgcc/rootfs/ ; exit 1 ; }
[ -d /opt/armgcc/deploy/ ] || mkdir /opt/armgcc/deploy/
echo Make Root File System Image.
mkfs.jffs2 -r /opt/armgcc/rootfs/ -e 0x20000 -l -p -n -o /opt/armgcc/deploy/rootfs.bin --pagesize=0x800
ls /opt/armgcc/deploy/rootfs.bin -l
